package com.wzt.consumer.handler;

import com.rabbitmq.client.Channel;
import com.wzt.base.config.RabbitMQRegisterConfig;
import com.wzt.consumer.dto.RegisterNoticeDto;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;

public class RegisterNoticeSmsReceiveHandler {
    //监听email队列
    @RabbitListener(queues = {RabbitMQRegisterConfig.QUEUE_INFORM_SMS})
    public void receive_email(RegisterNoticeDto registerNoticeDto, Message message, Channel channel) {
        System.out.println(registerNoticeDto.getReceiver());
        System.out.println(registerNoticeDto.getContent());

        //就可以使用短信技术进行发送 @TODO
    }
}
